package ai.people.core.feign.api.facebook;

import ai.people.netmon.framework.domain.facebook.probe.entity.FacebookAccount;
import ai.people.netmon.framework.model.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * facebook 探测 用户 feign接口
 *
 * @author zhenglin
 * @since 2022/3/24
 */
@FeignClient(name = "NM-SERVICE-FACEBOOK", path = "/facebook/probe/user")
public interface FacebookProbeUserClient {

    /**
     * 批量保存facebook账号信息
     *
     * @param list facebook账号信息集合
     * @return {@link Result}<{@link Boolean}>
     */
    @PostMapping( "/batchSave")
    Result<Boolean> saveBatch(@RequestBody List<FacebookAccount> list);
}
